#include<iostream>
#include<string>

using namespace std;

int main()
{
	char cont = 'y';
	string s, result;
	cout << "请输入第一个字符串:" << endl;
	while (cin>>s)
	{
		result += s;
		cout << "是够继续(y or n)?" << endl;
		cin >> cont;
		if (cont == 'y'||cont =='Y')
		{
			cout << "请输入下一个字符串:" << endl;
		}
		else
		{
			break;
		}
		
	}
	cout << "拼接后的字符串是：" << result << endl;

	system("pause");

	return 0;
}
